package com.vst.hsd.dominio;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.Lob;
import javax.persistence.ManyToMany;
import javax.persistence.Table;


/**
 * The persistent class for the boton database table.
 * 
 */
@Entity
@Table(name="boton")
public class Boton extends Recurso implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Column(name="bloqueable")
	private Boolean bloqueable;

	@Column(name="codigo")
	private String codigo;
	
	@Column(name="icono")
	private String icono;

	@Column(name="on_complete")
	private String onComplete;

	@Column(name="on_submit")
	private String onSubmit;
	@Column(name="orden")
	private Integer orden;


	@Lob
	@Column(name="parametros_json")
	private String parametrosJson;
	
    @Column(name="tipo")
	private Character tipo;
    
    
    @Column(name="url")
	private String url;

	//bi-directional many-to-many association to Menu
	@ManyToMany
	@JoinTable(
		name="boton_por_menu"
		, joinColumns={
			@JoinColumn(name="id_boton")
			}
		, inverseJoinColumns={
			@JoinColumn(name="id_menu")
			}
		)
	private List<Menu> menus;
	

    public Boton() {
    }

    
    
	
	public Boolean getBloqueable() {
		return bloqueable;
	}




	public void setBloqueable(Boolean bloqueable) {
		this.bloqueable = bloqueable;
	}




	public Character getTipo() {
		return tipo;
	}




	public void setTipo(Character tipo) {
		this.tipo = tipo;
	}




	public String getUrl() {
		return url;
	}




	public void setUrl(String url) {
		this.url = url;
	}




	public void setOrden(Integer orden) {
		this.orden = orden;
	}




	public String getCodigo() {
		return this.codigo;
	}

	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}

	public String getIcono() {
		return this.icono;
	}

	public void setIcono(String icono) {
		this.icono = icono;
	}

	public String getOnComplete() {
		return this.onComplete;
	}

	public void setOnComplete(String onComplete) {
		this.onComplete = onComplete;
	}

	public String getOnSubmit() {
		return this.onSubmit;
	}

	public void setOnSubmit(String onSubmit) {
		this.onSubmit = onSubmit;
	}

	public int getOrden() {
		return this.orden;
	}

	public void setOrden(int orden) {
		this.orden = orden;
	}

	public String getParametrosJson() {
		return this.parametrosJson;
	}

	public void setParametrosJson(String parametrosJson) {
		this.parametrosJson = parametrosJson;
	}

	
	public List<Menu> getMenus() {
		return this.menus;
	}

	public void setMenus(List<Menu> menus) {
		this.menus = menus;
	}
	
}